function login(){
    var url="../../Admin/login/loading";
    $.ajax({
        type: "post",
        async: true,
        data: $("#loginForm").serialize(),
        url: url,
        success: function(d){
            var data=$.parseJSON(d);
            var state=data.state;
            var message=data.message;
            if(state==1){
                window.location.href="../../Admin/login/admin";
            }else if(state==2){
                $("#div_load").html(message)
            }else if(state==3){
                $("#div_validate").html(message);
            }
        },
        error: function(e){
            alert(e);
        }
    });
}